Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

How to consume Identity Server in a class library or console app? #861

Closed
venh opened this issue Sep 22, 2015 · 1 comment
Closed

How to consume Identity Server in a class library or console app? #861

venh opened this issue Sep 22, 2015 · 1 comment

Comments

@venh
Copy link

venh commented Sep 22, 2015

I don't want to use the MVC based Web site that comes along with the Identity Server project. Rather, I would like to use the DLLs and reference them in my custom project (class library / console app) and would like to authenticate a user and generate a token, serialize and cache it and retrieve it back from the cache and re-validate it. Could you kindly let me know, if this is possible, and if so, could you kindly let me know the steps(including code) to do it?

@brockallen
Copy link
Member

There is a core DLL on NuGet for IdentityServer2. I don't think we have any samples that show its use, though. Your best bet would be to build something similar to what the current hosting project does.

As an alternative, you might want to look at IdentityServer3 as it allows more customization like you're asking for: https://github.com/IdentityServer/IdentityServer3/

@venh venh closed this as completed Sep 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants