Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community

Hybrid Azure AD Join + Okta Federation

Copper Contributor

Implemented Hybrid Azure AD Joined with Okta Federation and MFA initiated from Okta.

Trying to implement Device Based Conditional Access Policy to access Office 365, however, getting Correlation ID from Azure AD. Did anyone know if its a known thing?

 

SSO State AD PRT = NO

11 Replies

@RIGAN25Are you getting Azure AD PRT or not ?

@Rishabh Srivastava We are unable to see Azure AD PRT.

@RIGAN25  Is you machine is showing as hybrid in the cloud or not ?
If your machine is showing hybrid in the cloud, then check device registration and AAD logs on the machine.

Location - Application/Service logs --> Microsoft --> AAD

Yes my device is showing Hybrid in the cloud. Thanks for pointing out to me the logs for AAD.

@RIGAN25 Hi - did you ever find a solution to your Azure PRT issue while federated with OKTA? We have exactly the same problem while federated with RSA.

@garry790 : Yes, Gary, we did rolled out this process using controlled validation, and instead of using federated domain, used Initial Domain which is Microsoft Provided domain: .onmicrosoft.com

 

Hi @RIGAN25, can you elaborate on this? I have the exact same problem, federated with Okta and wanting to use conditional access policies using hybrid joined devices.

They are failing the CA policy because AzureAdPrt = NO.

@Kav77 Providing you details about this:
Please follow controlled HYAADJ rollout using Group Policy Object.
The only change you need to perform related to GPO object is the Tenant.

Use Tenant domain : domain.onmicrosoft.com and not the custom domain name verified to the tenant.

Also, the reason where you see AzureAD PRT = NO, is related to device where Windows device login work on Legacy Auth, so please create a Rule in Okta to allow legacy auth to the PRT token.

Be sure that device is able to communicate to DC and Internet while performing the device registration process.

hmm I only have the GPO 'Windows Components> Device registration> register domain joined computers as devices' enabled and that seems to have Hybrid joined the devices successfully. It has no option for specifying the tenant domain?

Anyway I just noticed the AzureAdPrt is user based. I was running CMD under admin and it was saying NO, but when run under user context it actually says 'YES'. Think I will log this with support.

@RIGAN25I wasnt sure what you meant by this initially: "Also, the reason where you see AzureAD PRT = NO, is related to device where Windows device login work on Legacy Auth, so please create a Rule in Okta to allow legacy auth to the PRT token."

 

Did some digging and found these two resources:

https://www.okta.com/resources/whitepaper/securing-office-365-with-okta/

https://www.youtube.com/watch?v=gvQ8BuxRlkg&ab_channel=Okta

 

Though I didnt have the option to add a custom agent string, I did add another sign on policy in Okta to allow legacy auth and now my PRT token is generated and device conditional access policies work :)

 

Hopefully this helps someone else that may come across this.

@Kav77 Custom User Agent is Early Access, which Okta admins should be able to enable themselves from the Admin UI "Settings>Features". If not available, Okta support can turn it on for you.

 

https://help.okta.com/en/prod/Content/Topics/Apps/Office365/custom-client-filter.htm