- ABP Framework version: v8.2.0
- UI Type: Blazor WASM
- Database System: EF Core (SQL Server)
- Tiered (for MVC) or Auth Server Separated (for Angular): no
- Exception message and full stack trace:
- Steps to reproduce the issue:
I created an application with abp template. The swagger works fine. Now I need to test its APIs from Postman. For example, through GET https://my-company.com/api/identity/roles/all. (This API does not require parameters.) It does not return a list of roles, instead, it outputs a html page. It looks correct, because I haven't been authenticated.
Usually, I first need to GET a JWT bear token with my credential and then send http request to other APIs with the token in header. However, I couldn't find the endpoint on swagger to get JWT. I wonder if abp identity server supports JWT Auth? If so, how do I get the bear token? If not, how do I choose Authorization type from Postman?
Thanks
12 Answer(s)
-
0
-
0
I tested this, but always get "error": "invalid_scope". I tried to use my email address as scope-Value. Still same error. Can you provide a sample value?
-
0
please share some screenshots
-
0
-
0
-
0
it's wrong.
should be client_id not client_Id
if you got
invalid_granttype
, you can edit the application in the application management page to enablepassword
granttype -
0
-
0
you can edit the application in the application management page to enable password granttype
-
0
Where is the application management page? In interface or in code? I couldn't fine neither. Can you show a screenshot?
-
0
-
0
Got it. Works great.
Thank you!
-
0
great