<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
0D54z00007YnmvJCAROkta Classic EngineAuthenticationAnswered2022-04-06T15:57:02.000Z2022-04-05T17:08:37.000Z2022-04-06T15:57:02.000Z

MarcV.59687 (Customer) asked a question.

Problem Logging in

Hello i just started Okta, I have an angular app with an express, node.js Back-end, i followed the tutorial linked to this : "https://github.com/oktadev/okta-angular-mongodb-hangman-example"

Except for the client ID and issuer the rest of my code is basically the same.

Yet i can't connect, on my system logs i have this :

/help/servlet/rtaImage?refid=0EM4z000003fxCo

 

The code to login on the front-end look like that :

 

@Component({

  selector: 'app-root',

  templateUrl: './app.component.html',

  styleUrls: ['./app.component.css']

})

export class AppComponent {

  title = 'timeline-client';

  isAuthenticated: boolean;

 

  constructor(public oktaAuth: OktaAuthService) {

    this.oktaAuth.$authenticationState.subscribe(

      (isAuthenticated: boolean)  => this.isAuthenticated = isAuthenticated

    );

  }

 

  ngOnInit() {

    this.oktaAuth.isAuthenticated().then((auth) => {this.isAuthenticated = auth});

  }

 

  login() {

    this.oktaAuth.loginRedirect();

  }

 

  logout() {

    this.oktaAuth.logout('/');

  }

}

 

And this is for the back-end :

 

/help/servlet/rtaImage?refid=0EM4z000003fxBS

 


This question is closed.
Loading
Problem Logging in