<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
0D54z0000A185FVCQYOkta Classic EngineAuthenticationAnswered2024-07-13T09:01:57.000Z2024-02-20T18:52:28.000Z2024-02-21T16:49:31.000Z

bidcb (bidcb) asked a question.

Java App and Angular Apps sharing authentication.

I have a Java/SpringBoot application using ThemeLeaf templating engine that does OAUTH2 authentication. I also have several Angular apps that using the Okta Javascript software to do OAUTH2 authentication. Is it possible that they all share the same authentication so if I login into the Java app then access the Angular apps I don't have to log in again from the Angular apps?


  • bidcb (bidcb)

    I got it to work by making this call in the Angular app:

     

    this.oktaAuth.signInWithRedirect();

     

    If you have MFA enabled, you will be prompted for a security code as expected.

    Selected as Best
  • bidcb (bidcb)

    I got it to work by making this call in the Angular app:

     

    this.oktaAuth.signInWithRedirect();

     

    If you have MFA enabled, you will be prompted for a security code as expected.

    Selected as Best

Loading
Java App and Angular Apps sharing authentication.
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply