Comments (7)
I got my azure table storage to work except for for the Code Flows clients as I need to figure out what is the best approach for serializing ClaimsPrincipal on AuthorizationCode.
from identityserver3.
Cool.
I would simply serialize a list of claims.
We need a separate contrib repo or something similar. soon.
from identityserver3.
I was planing on just putting my stuff into a seperate repository as I can set it up with Myget.
Most annoying parts now is the referencing of local dlls and dependencies. I have used myget to link github repositories to their build service and have fresh dlls everytime something checks in to the repository. Considered anything like it? If not, is there anything in the license that keeps me from doing it on my forked repository as long as I do not publish it to nuget but just keep it on a myget repository.
I am in the process of writing a blog post about setting up a idsrv and my startup looks like this and everything get stored in azure storage tables. I will publish it in some days if I get everything to work outside localhost :)
app.Map("/core", coreApp =>
{
Func<IdentityServerTableContext> storageContext = () => new IdentityServerTableContext(
CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("S-Innovations.IdSrv.StorageConnectionString")));
var settings = new AzureTableStoreCoreSettings(storageContext(),
issuerUri: "https://idsrv.s-innovations.net",
siteName: "S-Innovations IdSrv",
certificateThumbprint: "6b7acc520305bfdb4f7252daeb2177cc091faae1",
publicHostAddress: "https://idsrv.s-innovations.net");
var consent = new AzureTableStoreConsentService();
var logger = new DebugLogger();
var fact = new IdentityServerServiceFactory
{
Logger = () => logger,
UserService = UserServiceFactory.Factory,
AuthorizationCodeStore = () => new AzureTableStoreAuthorizationCodeStore(storageContext()),
TokenHandleStore = () => new AzureTableStoreTokenHandlerStore(storageContext()),
CoreSettings = () => settings,
ConsentService = () => consent
};
var options = new IdentityServerCoreOptions
{
Factory = fact,
SocialIdentityProviderConfiguration = ConfigureSocialIdentityProviders
};
coreApp.UseIdentityServerCore(options);
});
}
from identityserver3.
Dominick, are the authentication type not important in the AuthorizationCode subject?
The following serialization would be sufficient then?
private static Task<ClaimsPrincipal> SubjectDeserializer(EntityProperty property)
{
return Task.FromResult(new ClaimsPrincipal(new ClaimsIdentity(
JArray.Parse(property.StringValue)
.Select(j => new Claim(j["Type"].ToObject<string>(), j["Value"].ToObject<string>())))));
}
private static Task<EntityProperty> SubjectSerializer(ClaimsPrincipal subject)
{
return Task.FromResult(new EntityProperty(
JsonConvert.SerializeObject(subject.Claims.Select(c => new { c.Type, c.Value }))));
}
from identityserver3.
No
from identityserver3.
@brockallen will create a persistence layer for EF next week. Everything else could be OSS contributions
from identityserver3.
Cool
from identityserver3.
Related Issues (20)
- CustomUserService with Redis cache: Looking for validation that I am doing it properly HOT 1
- User X509 certificate HOT 6
- How to get all active clients for current session HOT 1
- Exception cleaning tokens is a recurring error that appears. HOT 1
- Need to change the validation message when login HOT 1
- Mixed authentication MVC controller HOT 2
- Force users to login for authorization endpoint HOT 4
- IdentityServer3 HOT 2
- Logout Problem with MvcViewService Implementation HOT 1
- How to set strong password restriction HOT 1
- How to sign my JWT using Firebase private key to integrate with IdentityServer HOT 1
- IdentityServer3 when I submit a form to login sometimes it is very slow HOT 5
- how to use IdentityServer3 in the webform with .net framework 4.0 HOT 4
- Why not just render the login page in the first login requst? HOT 2
- Refresh Tokens
- Any sample with android and retrofit? HOT 2
- React native client example? HOT 1
- "No signin id passed" message
- Custom user service doesn't work with Facebook as external login provider. HOT 1
- Question about single sign out with Identity Server 3 hybrid flow
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.