New authorization header
Filters options that are unsecure.
See the advance options that can be requested through the options parameter: https://api.aai.ebi.ac.uk/docs/authentication/authentication.index.html#_common_attributes
The time to live paramenter (ttl) default value is 60 minutes. It is a big security risk to request longer ttl. If a third party gets hold of such token, means that they could use it for a day, week, year (essentially, like having the username/password).
Format and filter fragment options
fragment string
Listen to changes in the token from other windows.
For inter-window communication messages are transmitted trough changes on a dummy storage key property: '_commKeyName'.
Notice that changes in the '_commKeyName' produced by this class doesn't trigger this event.
Listen for login messages from other windows. These messages contain the tokens from the AAP. If a token is received then the callbacks are triggered.
Check if the message is coming from the same domain we use to generate the SSO URL, otherwise it's iffy and shouldn't trust it.
Add a callback to the LogIn event.
The Function called when the login event is triggered and the JWT token is received and accepted.
The event registration id (necessary to unregister the event).
Add a callback to the LogOut event.
The Function called when the logout event is triggered and the JWT token is received and accepted.
The registration id (necessary to unregister the event).
Change password AAP account
true when password is successfully changed
Create AAP account
uid of the new user
Produces a URL that allows logging into the single sign on (SSO) page. The URL cans be opened in a new tab using target="_blank", or in a new window using window.open().
See method _filterLoginOptions regarding security risks of certain LoginOptions.
The SSO URL.
Functions that logs out the user. It triggers the logout callbacks. It is an arrow function (lambda) because in that way it has a reference to 'this' when used in setTimeout call.
Login directly through the AAP
See method _filterLoginOptions regarding security risks of certain LoginOptions.
true if the user successfully login, otherwise false
Functions that opens a tab (in modern browser).
See method _filterLoginOptions regarding security risks of certain LoginOptions.
Functions that opens a window instead of a tab.
See method _filterLoginOptions regarding security risks of certain LoginOptions.
Pixel width of the login window.
Pixel height of the login window.
Position of the left corners. If it is a negative number it centres the login window on the screen.
Position of the top corners. If it is a negative number it centres the login window on the screen.
Refresh token
true when token is successfully refreshed
Remove a callback from the LogIn event.
The id given when event listener was added.
true when remove successfully, false otherwise.
Remove a callback from the LogOut event.
The id given when event listener was added.
true when remove successfully, false otherwise.
Generated using TypeDoc
Creates Authorization header