1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-05 03:30:05 +00:00

feat(login): redirect mechanism - in page link to open popup

This commit is contained in:
Saad Jutt
2021-08-28 10:01:20 +05:00
parent 4c90f66dbc
commit 389ef94cd5
4 changed files with 291 additions and 7 deletions

View File

@@ -23,14 +23,18 @@ export class AuthManager {
: '/SASLogon/logout.do?'
}
/**
* Opens Pop up window to SAS Login screen.
* And checks if user has finished login process.
*/
public async redirectedLogIn() {
const loginPopup = openWebPage(this.loginPreventRedirectUrl, 'SASLogon', {
width: 500,
height: 600
})
const loginPopup = await openWebPage(
this.loginPreventRedirectUrl,
'SASLogon',
{ width: 500, height: 600 }
)
if (!loginPopup) {
alert('Unable to open popup for login. Please try with other browser.')
return { isLoggedIn: false }
}