Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

Microsoft.Owin.Security.OAuth Version=3.0.0 Tokens support #1553

Closed
horbel opened this issue Jan 4, 2018 · 2 comments
Closed

Microsoft.Owin.Security.OAuth Version=3.0.0 Tokens support #1553

horbel opened this issue Jan 4, 2018 · 2 comments

Comments

@horbel
Copy link

horbel commented Jan 4, 2018

Hi all. I have Authorization server which built on .NET 4.5.1 and use Microsoft.Owin.Security.OAuth Version=3.0.0
http://prntscr.com/hvwhl4
Tokens protected via machinkey (OAuthAuthorizationServerOptions.AccessTokenFormat is null). I also have few application-consumers(resource servers) on .NET 4.5.1 which validate these tokens via custom AuthorizeAttribute (System.Web.Http Version=5.2.3.0) http://prntscr.com/hvwwdu http://prntscr.com/hvwiwr . I also can read claims from token using this attribute. All these applications have the same machinkey in web.config

Now I try to build .net core 2.0 application and I need to use the same tokens from my Auth server(.net 4.5.1 owin 3.0.0). How can I validate and read claims from Microsoft.Owin.Security.OAuth(3.0.0) tokens in .net core 2.0?

@horbel
Copy link
Author

horbel commented Jan 4, 2018

I think I find a kind of solution. I use AspNet.Security.OAuth.Validation assembly: http://prntscr.com/hw1u5m

But I still don't find out how to use machine key to "decode" bearer token from my Auth server

@blowdart
Copy link
Member

blowdart commented Jan 4, 2018

This issue was moved to aspnet/Security#1592

@blowdart blowdart closed this as completed Jan 4, 2018
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