Identityserver4: What is the difference betwee ApiResourceScope and ApiScope

Created on 22 Jun 2020  路  8Comments  路  Source: IdentityServer/IdentityServer4

I am creating a new ApiResource and I am using ApiResourceScope. I am getting the error Invalid Scope.

What is the difference between ApiResourceScope and ApiScope

This is when using entity framework with IdentityServer 4. I just migrated from 3 to 4

question wontfix

Most helpful comment

Using EF, do configure the scope by adding more configuration like this:

image

and

image

All 8 comments

Can't answer the EF question - but here are the conceptual docs:

https://identityserver4.readthedocs.io/en/latest/topics/resources.html

Thanks for the feedback, I get the changes.

I am having the following error
No scopes found in request,

I am a bit lost because I have a custom grant validator. In 3.1.x this used to work. After the update it is telling me to scopes. Obviously I am not sending scopes because I am using the custom grant validator...

any ideas

Same issue here since the upgrade from 3 to 4:
IdentityServer4.Validation.DefaultResourceValidator: Error: Scope webapi not found in store.

Using EF, do configure the scope by adding more configuration like this:

image

and

image

@vietlp - that fixed it for me, thanks

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Questions are community supported only and the authors/maintainers may or may not have time to reply. If you or your company would like commercial support, please see here for more information.

When I do a migration with the latest version of identityserver4 I get the db as shown in the image . whats the difference betweent these two

apiresource_scope

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings