<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y00008chlU0SAIOkta Classic EngineSingle Sign-OnAnswered2020-06-12T04:09:24.000Z2020-06-04T15:34:49.000Z2020-06-12T04:09:24.000Z

EricB.24077 (Customer) asked a question.

Using Okta to log in an Asp.Net MVC app, (vs2013), how do i get teh users ADGuid?

 

 

Okta noob here, Oauth noob too

 

I've got a test app, in asp.net mvc in VS2013.

 

based on this example

 

https://developer.okta.com/quickstart-fragments/dotnet/aspnet4-auth-code/

 

The user is from a local AD, synched with Okta. The goal is SSO across our apps using Okta.

 

In the Base page for the login, it's getting the users name from the Identity and claims.

 

 

<p class="navbar-text">Hello, <b>@Context.User.Identity.Name</b></p>

 

        @foreach ( var claim in ( ( ClaimsIdentity )User.Identity ).Claims )

        {

          <dt title="@claim.Type">@claim.Type</dt>

          <dd>@claim.Value</dd>

        }

 

I added the loop to look at the rest of the claims, I was hoping to see the Guid for user

 

How to i get this info from Okta? Can i get the guid in the local AD domain, or can I only get some other Oklta specific Uuid?

 

Thanks,

 

Eric-

 

 


  • Hi Eric,

     

    Thank you for reaching out to Okta Community Portal.

     

    Based on your description using Oauth with Okta, you should reach out to developers@okta.com via an email and explain the issue that you've encountered.

     

    By sending an email to developers@okta.com, you will create a case with our Developer Support team and they will help you out.

     

    Thank you,

     

    Vlad Tanasa

    Expand Post
This question is closed.
Loading
Using Okta to log in an Asp.Net MVC app, (vs2013), how do i get teh users ADGuid?