This repository has been archived by the owner on May 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MUMUP-2670 : Cleanup silent login step (#513)
* cleanup login so it works okay for localhost and the like * documentation * add to docs home
- Loading branch information
Tim Levett
authored
Aug 22, 2016
1 parent
a0ce9f5
commit 06c82b2
Showing
5 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use strict'; | ||
define([], function() { | ||
return { | ||
"loginURL" : null //null for localhost so we don't break things | ||
//"loginURL" : "/portal/Login?silent=true&profile=bucky" //overlay will have something like this | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
We needed a way to bootstrap a session in portal before fetching things from `/portal/api/*` so we came up with this silent login prestep. | ||
|
||
If you want to configure this, override the `js/login-config.js` file and plug in your login URL that will return JSON saying "success". This works really well with shib since the login should have already happened, this just calls the standard uPortal login code, but since we are saying `silent=true` it'll just return JSON with the username instead of try to redirect the browser to the uPortal home screen. | ||
|
||
If you want to learn more look at `main.js` in `src/main/webapp`. |