Search Results for

    Show / Hide Table of Contents

    Class JwtBearer

    static class for easy creation of jwt bearer tokens

    Inheritance
    object
    JwtBearer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: FastEndpoints.Security
    Assembly: FastEndpoints.Security.dll
    Syntax
    public static class JwtBearer

    Methods

    CreateToken(Action<JwtCreationOptions>)

    generates jwt tokens with supplied settings.

    Declaration
    public static string CreateToken(Action<JwtCreationOptions> options)
    Parameters
    Type Name Description
    Action<JwtCreationOptions> options

    action to configure jwt creation options.

    Returns
    Type Description
    string
    Exceptions
    Type Condition
    InvalidOperationException

    thrown if a token signing key is not supplied.

    In this article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX