• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc
Show / Hide Table of Contents

JWT Authentication Handler

DNN Version: 09.02.00
12/08/2019 • 1 minute to read
Contributors  david-poindexter
12/08/2019  • 1 minute to read  • Contributors  david-poindexter

After the JWT Authentication Handler is installed in DNN, the web.config file is updated with a line similar to the following:


    <authServices>
        <messageHandlers>
            <!-- other message handlers -->
            <add name="JWTAuth" type="Dnn.AuthServices.Jwt.Auth.JwtAuthMessageHandler, Dnn.AuthServices.Jwt" enabled="false" defaultInclude="false" forceSSL="true"/>
        </messageHandlers>
    </authServices>

Parameter Allowed Values Description
name string Name of the authentication provider. Must be unique within the messageHandlers section.
enabled true or false If true, an instance of the provider is created and added to the chain of providers when the application starts. Otherwise, the provider is not instantiated.
defaultInclude true or false If true, the API controller uses the authentication type included in each Web API request by default; if false, the API controller uses the authentication type specified in its own DnnAuthorize attribute. Example: If the API controller’s attribute is set to [DnnAuthorize(AuthTypes = "JWT")], then the API controller will respond only to requests that use JWT authentication.
forceSSL true or false If true, SSL mode (HTTPS) is required for API requests; otherwise, all requests are accepted.Important: To prevent unauthorized access to the site, enforce SSL so that tokens are treated the same way as cookies in a web request.
IETF RFC 7519DNN Presentation: How Evoq Helps You Build Modern Web Applications by Will Morgenweckjwt.io
Back to top by the community, for the community... #DNNCMS