Comments (11)
Is the scope middleware configured with an array of strings or something else for the scopes?
from identityserver3.membershipreboot.
Are you referring to the RequiredScopes for the API or the actual scopes defined within IdentityServer?
app.UseIdentityServerBearerTokenAuthentication(new IdentityServerBearerTokenAuthenticationOptions
{
Authority = idProviderUrl,
RequiredScopes = new[] { "MyAPI" }
});
from identityserver3.membershipreboot.
Yes, please try string[].
from identityserver3.membershipreboot.
Still get the exception....
string[] scopes = {"MyAPI"};
app.UseIdentityServerBearerTokenAuthentication(new IdentityServerBearerTokenAuthenticationOptions
{
Authority = idProviderUrl,
RequiredScopes = scopes
});
from identityserver3.membershipreboot.
Are you loading from NuGet or MyGet? What's the package ID and source? // @leastprivilege
from identityserver3.membershipreboot.
Loading from Nuget. IdentityServer package ID is Thinktecture.IdentityServer3 and I am also using Thinktecture.IdentityServer3.MembershipReboot gotten from Nuget as well.
It is worth noting that I have a class library that holds the CustomConfig, CustomDatabase, CustomUser, and interfaces that is then referenced in both my API and in my IdentityServer project. Within this class library I make use of the BrockAllen.MembershipReboot and BrockAllen.MembershipReboot.Ef
from identityserver3.membershipreboot.
Ok, I'll try to repro when I get some time later this week.
from identityserver3.membershipreboot.
Thank you, if you need more details please let me know.
from identityserver3.membershipreboot.
Did this ever get sorted out?
from identityserver3.membershipreboot.
Yes, I ended up finding a way to mock the user service calls in my unit tests. Turns out there was no need to create the interfaces to this because you guys had already made life easy my making the methods virtual. Thanks for the awesome work @brockallen.
from identityserver3.membershipreboot.
Ok, sorry I didn't follow your original question. Glad you're all set now.
from identityserver3.membershipreboot.
Related Issues (20)
- Configuring MR for sending emails HOT 5
- New Feature: Add HMAC-Based One-time Password (HOTP) and Time-based One-time Password (TOTP) support HOT 1
- Missing Method Exception UserAccountService.CreateAccount for External Provider HOT 14
- Setting up MRB with CustomUserDetails and IdentitySever HOT 4
- Handling 'RequireAccountVerification' when federating across multiple IdPs HOT 6
- Q: when extending model, also generate claims HOT 5
- Nuget package Install on ASP.NET 5 web app fails HOT 6
- Change the error message from "Account is closed" to "Account is inactive" HOT 1
- Login with username or email
- UTC offset applied twice to updated_at claim HOT 10
- adding identityserver3.membershipreboot package in aspnet 5 applications HOT 2
- Performance Query HOT 11
- Potential security issue: Authentication implementation leaks details about existing user accounts HOT 2
- Configuring MR for Authentication Audit Event Handler HOT 3
- The operation cannot be completed because the DbContext has been disposed. HOT 1
- Capturing All Events in Audit Trail HOT 8
- Should unverified accounts return their claims when UserInfo is requested? HOT 5
- Adding new user via External Provider - saving their claims HOT 1
- Claims Being Dropped HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from identityserver3.membershipreboot.