Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get data info from AD profiles like emails, name, etc from scopes? #47

Closed
biapar opened this issue Jun 11, 2020 · 4 comments
Closed

Comments

@biapar
Copy link

biapar commented Jun 11, 2020

How to get data info from AD profiles like emails, name, etc from scopes?

@Nordes
Copy link
Owner

Nordes commented Jun 11, 2020

Hi @biapar , could you be more specific? But I think you want to refer to claims and scope which is more an Identity Server thing. You can then look in the IS4 documentation.

Otherwise, this library uses some LDAP attributes (ActiveDirectory attributes) by default. You can implement your own if you wish to.

@biapar
Copy link
Author

biapar commented Jun 11, 2020

Hi, yes I mean AD Attributes other standard claims.

@chrgraefe
Copy link

chrgraefe commented Jun 11, 2020

Hi @biapar

you can get the email via default scope "email"

put in Startup.cs

options.Scope.Add("email");

don't forget to allow the scope in client configuration

AllowedScopes =
                    {
                        IdentityServerConstants.StandardScopes.OpenId,
                        IdentityServerConstants.StandardScopes.Profile,
                        "api1"
                    }

@Nordes
Copy link
Owner

Nordes commented Apr 13, 2021

Thanks @chrgraefe

@Nordes Nordes closed this as completed Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants