1
bqabani created
- ABP Framework version: v9.0.2
- UI Type: Angular
- Database System: EF Core (SQL Server)
- Tiered: yes
- Auth Server Separated (for Angular): no
- Exception message and full stack trace:
The token request was successfully extracted: { "grant_type": "authorization_code", "code": "[redacted]", "client_id": "AppName_Swagger", "redirect_uri": "https://my-domain/swagger/oauth2-redirect.html" }
The response was successfully returned as a JSON document: { "error": "invalid_grant", "error_description": "The specified token is invalid.", "error_uri": "https://documentation.openiddict.com/errors/ID2004" }.
- Steps to reproduce the issue:
- Create a new Abp app
- Deploy it to IIS
- Add SSL
- Configure urls + run DbMigrator + configure appSettings
- Test Login on HostApp : worked
- Logout : worked
- Open Swagger: try Authorize (Login) : select scope (appname) ,
- Then redirected to login page automatically, then input credentials
- redirected back to swagger with error: auth errorError: response status is 400, error: invalid_grant, description: The specified token is invalid.
- the same scenario for angular : error : infinite redirection between Host and angular , with same error above
- but login directly using MVC app : worked
Please note that there is no changes on code has been made
for more info, I added log here: https://drive.google.com/file/d/1KVqn0XN3wjbAsq4oPMxAiH3QrzfVzSOb/view?usp=sharing