开发者

How do I implement custom role authorization with ADFS in ASP.Net MVC2?

开发者 https://www.devze.com 2023-01-20 11:35 出处:网络
I\'m pretty new with ADFS and and Custom Role authorization so any help (and a lot of patience) would be greatly appreciated.

I'm pretty new with ADFS and and Custom Role authorization so any help (and a lot of patience) would be greatly appreciated.

I'm trying to set up ADFS with custom authorization. I have the ADFS set up to return me a claim, from there I can get a username from the name token. However, I already have an existing roles table which I need to map up to the username from the token and set the session object to reflect his roles?

I guess what I'm very confused about (besides what seems like everything right now) is when the claim comes back, what controller is hit to process the token?开发者_运维技巧

Before changing my app to use ADFS authentication, it would:

1) hit the AccountController,

2)validate the user, and

3)set the Asp.net session to store the users info.

Now that I'm using ADFS, it seems to authenticate the user, and then populate the session without me knowing where to intercept and put in custom roles code?

Can someone offer some direction?


What you need to do is send across all AD groups in some ADFS rule, and then convert those roles to groups in another rule. Let me know if you want more details instructions.

0

精彩评论

暂无评论...
验证码 换一张
取 消