Search Results for

    Show / Hide Table of Contents

    Class AuthorizationHelper

    Helper for working with the simplic cdn auth system (JWT)

    Inheritance
    System.Object
    AuthorizationHelper
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.Framework.WebAPI
    Assembly: Simplic.Framework.WebAPI.dll
    Syntax
    public static class AuthorizationHelper

    Methods

    | Improve this Doc View Source

    CreatePrivateKey()

    Create a new private key

    Declaration
    public static byte[] CreatePrivateKey()
    Returns
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    GenerateJWT(UserPrincipal)

    Generate the JWT for an user principal

    Declaration
    public static string GenerateJWT(UserPrincipal userPrincipal)
    Parameters
    Type Name Description
    UserPrincipal userPrincipal

    Principal instance

    Returns
    Type Description
    System.String

    JWT

    | Improve this Doc View Source

    IsPrivateKeyExisting()

    Check whether a private key is already existing

    Declaration
    public static bool IsPrivateKeyExisting()
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx