Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AuthenticationManager

AuthenticationManager class responsible for authentication of users by WebID

Hierarchy

  • AuthenticationManager

Index

Constructors

Private constructor

Properties

Static Private instance

Methods

currentSession

  • currentSession(storage: any): Promise<any>
  • Returns current sessions

    Parameters

    • storage: any

      Reference to browser storage holding the session

    Returns Promise<any>

fetch

  • fetch(input: RequestInfo, options?: __type): Promise<Response>
  • Forwards fetch requests to solidAuthClient

    Parameters

    • input: RequestInfo

      RequestInfo object forwared to solidAuthClient library

    • Default value options: __type = {}

      Additional options passed into fetch HTTP request

    Returns Promise<Response>

login

  • login(idp: string, options: __type): Promise<any>
  • Forwards login requests to solidAuthCLient

    Parameters

    • idp: string

      The string representing solid provider

    • options: __type

      Additional properties passed into login

    Returns Promise<any>

trackSession

  • trackSession(callback: Function): Promise<void>
  • Notifies the listener about login and logout states of the session

    Parameters

    • callback: Function

      Callback to invoke every time session status is updated

    Returns Promise<void>

Static getInstance

Generated using TypeDoc