Need help configuring swagger authorization. can't get past the following error.
error:invalid_request error_description:The specified 'redirect_uri' is not valid for this client application. error_uri:https://documentation.openiddict.com/errors/ID2043
for your refence i have attached swagger url and table screen shots
57 Answer(s)
-
0
hi
Please sahre the logs of authserver. Thanks
liming.ma@volosoft.com
-
0
It has been sent. Thank you
-
0
hi
The redirect URL in the request does not match the value in the database.
https://localhost:44318/swagger/oauth2-redirect.html https://localhost:44343/swagger/oauth2-redirect.html
Client validation failed because 'https://localhost:44343/swagger/oauth2-redirect.html' was not a valid redirect_uri for Files_App.
-
0
Can you please guid, where I miss configuration? Also please find above table screenshot "Redirecturi " and "Clienturi" column value is correct?
-
0
-
0
-
0
-
0
-
0
hi
You can try to remove the
client secret
for theswagger
application.Swagger is a public application. https://auth0.com/docs/get-started/applications/confidential-and-public-applications
https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.DbMigrator/appsettings.json#L38-L41
https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/OpenIddict/OpenIddictDataSeedContributor.cs#L188-L198
-
0
Hi
-
0
hi
error_description:The specified 'scope' is invalid.
Please share the
logs.txt
andPermissions
of your clients -
0
It has been sent. Thank you
-
0
hi
The authentication request was rejected because invalid scopes were specified: ["Files"].
"client_id": "Files_App",
Please check the
scopes
ofFiles_App
-
0
-
0
hi
Please check the
OpenIddictDataSeedContributor
fileawait _scopeManager.CreateAsync(new OpenIddictScopeDescriptor { Name = "Files", DisplayName = "Files API", Resources = { "Files" } });
https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/OpenIddict/OpenIddictDataSeedContributor.cs#L59-L67
You can also try to clear the cache(redis).
-
0
-
0
hi
Can you share a simple project? liming.ma@volosoft.com
I will check it locally.
-
0
It has been sent. Thank you
-
0
-
0
hi
You can share project via https://wetransfer.com/
-
0
Thanks. I will download and test it.
btw, can you share some steps about your project?
-
0
This is a sample project. I'm currently conducting a proof of concept (POC) for a File Management module. However, I want to run and test the File Management module locally. To do this, I simply ran ABP Suite locally and added the File Management module. Then, I tried to run the project as per the guidelines provided by ABP.IO .
I haven't configured any steps from my side this project.
-
0
How can I get the
The authentication request was rejected because invalid scopes were specified: ["Files"].
via your sample project? -
0
You can login using angular application then you will get this error, However, i shared below two tables data via email.
"OpenIddictApplications" "OpenIddictScopes"
-
0
ok, I will give it a try. Thanks.