Open Closed

OpenID Vs JWT and a question about implementation #1156


User avatar
0
falsharif created
  • ABP Framework version: v4.2.2
  • UI type: Blazor
  • DB provider: EF Core /
  • Tiered (MVC) or Identity Server Separated (Angular): no

Hi team, I wanted to ask you about a couple things. I have a blazor app running using the abp template. I am using the default authentication using the OPENID .

what is the advantage of using OPENID vs regular JWT token and attaching to the header ?

how can i change the behaviour of logging out --> going to a page that says i will be redirected ---> going to a page that says "Logged out" ??

at the moment, the redirect after i log out takes me to https://app.promailnet.com/authentication/logged-out , but i want it to go back to the login screen.

is there a way to user regular JWT ?


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    at the moment, the redirect after i log out takes me to https://app.promailnet.com/authentication/logged-out , but i want it to go back to the login screen.

    See https://stackoverflow.com/questions/39909419/what-are-the-main-differences-between-jwt-and-oauth-authentication.

    what is the advantage of using OPENID vs regular JWT token and attaching to the header ?

    OpenID Connect - OpenID Connect builds on top of OAuth2 and add authentication. OpenID Connect add some constraint to OAuth2 like UserInfo Endpoint, ID Token, discovery and dynamic registration of OpenID Connect providers and session management. JWT is the mandatory format for the token.

    See https://support.abp.io/QA/Questions/1152/How-to-to-Login-page-when-accessing-the-app-and-after-logout#answer-5c9c7a51-3689-9ec8-e5b6-39fbc698d514

  • User Avatar
    0
    falsharif created

    Thank you for the soluition

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11