Renewal Service

Responsibility

  • Knows when the token should expire
  • Is able to prepare request to Auth0 to renew
  • Knows how to communicate with Auth0
  • Recognizes an error from Auth0 and communicates as an event.
  • Knows how to parse the response from Auth0
  • Knows what to persist using TokenService
  • Knows what event to generate for success

Collaboration

  • Uses the RegStateSubject to notify subscribers of success and failure.
  • Uses the TokenService to obtain the
    • AccessToken
    • Expiration Timestamp
    • Renewal Token
  • Uses TokenService to store
    • New AccessToken
    • New Expiration Timestamp
    • Updated Profile parameters?
  • Uses the HttpService to
    • Communicate with Auth0

Configuration?

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License