You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great demo but it breaks once you update Identity Server to latest version, ApiResource more specifically.
Thanks.
Migration steps to v4
As described above, starting with v4, scopes have their own definition and can optionally be referenced by resources. Before v4, scopes where always contained within a resource.
To migrate to v4 you need to split up scope and resource registration, typically by first registering all your scopes (e.g. using the AddInMemoryApiScopes method), and then register the API resources (if any) afterwards. The API resources will then reference the prior registered scopes by name.
The text was updated successfully, but these errors were encountered:
So, basically, remove Scope definition from ApiResources, then create a new class with something like this (a bit rough but still)
internal static class ScopeManager
{
public static IEnumerable<ApiScope> Scopes =>
new List<ApiScope>
{
new ApiScope(name: "app.api.whatever.read", displayName: "Read your data."),
new ApiScope(name: "app.api.whatever.write", displayName: "Write your data."),
new ApiScope(name: "app.api.whatever.delete", displayName: "Delete your data.")
};
}
Hi,
Great demo but it breaks once you update Identity Server to latest version, ApiResource more specifically.
Thanks.
The text was updated successfully, but these errors were encountered: