Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to incorporate JWT identity and access tokens retrieved from an OpenID connect endpoint in DNN?How to incorporate JWT identity and access tokens retrieved from an OpenID connect endpoint in DNN?
Previous
 
Next
New Post
12/15/2015 2:53 AM
 

Has anyone attempted to do token (JWT) based authentication OpenID connect or OAuth within DnnController implementations?
I read this article: 
http://www.dnnsoftware.com/community-... 
where it says: WebFormsAuthMessageHandlerd always run last. 

//authentication message handlers
GlobalConfiguration.Configuration.MessageHandlers.Add(new BasicAuthMessageHandler());
GlobalConfiguration.Configuration.MessageHandlers.Add(new DigestAuthMessageHandler());
GlobalConfiguration.Configuration.MessageHandlers.Add(new WebFormsAuthMessageHandler());

I can see some code like this:
public override HttpResponseMessage OnOutboundResponse(HttpResponseMessage response, CancellationToken cancellationToken) {
     if (response.StatusCode == HttpStatusCode.Unauthorized && SupportsBasicAuth(response.RequestMessage))
     {
         response.Headers.WwwAuthenticate.Add(new AuthenticationHeaderValue(AuthScheme, "realm=\"DNNAPI\""));
     }

and I am not sure how is authentication session established in DNN.
I believe it supports both A
SP.Net forms cookie using .Dotnetnuke cookie and basic authentication (not sure - please clarify)???

Is this how DNN sets security principal to be used throughout request handling?
SetCurrentPrincipal(new GenericPrincipal(new GenericIdentity(credentials.UserName, AuthScheme), null), request);

How would one introduce OpenID connect id_token and how would we establish DNN context to be used in WebAPI implementations to 
handle authorizaton?

Any way to introduce OWIN pipeline? There is e.g Microsoft OpenID connect middleware. Can we use it in DNN?

I know a lots of questions, but if Orchard can do it I hope DNN can do it as well.

Thans,

 
New Post
12/15/2015 3:15 PM
 
We are working on a JWT implementation for DNN 8 for web service authentication.  The implementation will provide greater control over the messagehandler configuration and make it possible for additional messagehandlers to be created and injected into the auth chain.

Joe Brinkman
DNN Corp.
 
New Post
12/17/2015 12:12 AM
 

Thanks.

Is there any source code to preview now? 

Can I conclude that it is not possible to achieve what I want to do for now?

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to incorporate JWT identity and access tokens retrieved from an OpenID connect endpoint in DNN?How to incorporate JWT identity and access tokens retrieved from an OpenID connect endpoint in DNN?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out