Starts in:
2 DAYS
8 HRS
38 MIN
8 SEC
Starts in:
2 D
8 H
38 M
8 S
Open Closed

How to use responseType: 'code' and non 'code' flow for authentication at same time and allow user to authenticated with any on one #6117


User avatar
0
bhasinp created
  • ABP Framework version: v7.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I want to use both flows i.e. responseType: 'code' and non 'code' flow. How can I achieve that ? The reason is I want to use azure login, which works with 'code' flow which redirect the app to backend for login. But I don't want the code to go each time to backend api for auth.

I want for normal login I can use angular login page and authenticate user, If user choose the login with AD only then he will be redirected to backend api for login with ad and get back and angular take the auth code to log him in

oAuthConfig: { issuer: 'https://{0}.motrv2.com:44368/', redirectUri: baseUrl, clientId: 'motr_App', responseType: 'code', scope: 'offline_access motr', requireHttps: true, },


2 Answer(s)
  • User Avatar
    0
    mahmut.gundogdu created

    How do you choose/detech which Flow should work in which situation? with different page or detech with username vs ?

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    I want to use both flows i.e. responseType: 'code' and non 'code' flow. How can I achieve that ? The reason is I want to use azure login, which works with 'code' flow which redirect the app to backend for login. But I don't want the code to go each time to backend api for auth.

    The authentication flow can not be changed on run-time. Please stop with trying to re-invent the wheel :)

    Because it is not a wheel and very important part of web application development that is defined by IEEE Standarts.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06