-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SHIELD-71 SHIELD-78 Modified source of id_token. (#7145)
* SHIELD-64 Added Secure in id_token cookie. Signed-off-by: Atul Krishna <Atul.Krishna@progress.com> * temp commit Signed-off-by: Atul Krishna <Atul.Krishna@progress.com> * working signin removed redirect Signed-off-by: Vivek Shankar <vshankar@progress.com> * removed cookie for signin Signed-off-by: Vivek Shankar <vshankar@progress.com> * removed cookie for signin Signed-off-by: Vivek Shankar <vshankar@progress.com> * removed cookie for signin Signed-off-by: Vivek Shankar <vshankar@progress.com> * Removed redundant jump. Signed-off-by: Atul Krishna <Atul.Krishna@progress.com> * improvements in observable handling Signed-off-by: Vivek Shankar <vshankar@progress.com> * improvements in observable handling Signed-off-by: Vivek Shankar <vshankar@progress.com> * fixed bldr login Signed-off-by: Vivek Shankar <vshankar@progress.com> * Modified unit test for ui Signed-off-by: Atul Krishna <Atul.Krishna@progress.com> * Added CallbackService in signin spec. Signed-off-by: Atul Krishna <Atul.Krishna@progress.com> * Injected CallbackService for testcases. Signed-off-by: Atul Krishna <Atul.Krishna@progress.com> * fixed lint in ui Signed-off-by: Atul Krishna <Atul.Krishna@progress.com> * Renamed CallbackService to SigninService Signed-off-by: Atul Krishna <Atul.Krishna@progress.com> * Fixed seesion-service unit tests Signed-off-by: Atul Krishna <Atul.Krishna@progress.com> * fixed unit test Signed-off-by: Vivek Shankar <vshankar@progress.com> * fixed unit test Signed-off-by: Vivek Shankar <vshankar@progress.com> * fixed unit test Signed-off-by: Vivek Shankar <vshankar@progress.com> * updated some diagrams and docs Signed-off-by: Vivek Shankar <vshankar@progress.com> * updated diagram Signed-off-by: Vivek Shankar <vshankar@progress.com> * removed unused variable. Signed-off-by: Atul Krishna <Atul.Krishna@progress.com> Co-authored-by: Vivek Shankar <vshankar@progress.com>
- Loading branch information
1 parent
42a7e97
commit 2ca05f9
Showing
13 changed files
with
239 additions
and
170 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
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
20 changes: 20 additions & 0 deletions
20
components/automate-ui/src/app/services/signin/signin.service.ts
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,20 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { HttpClient } from '@angular/common/http'; | ||
import { Observable } from 'rxjs'; | ||
import { Params } from '@angular/router'; | ||
|
||
const callbackPath = '/session/callback'; | ||
export interface CallbackResponse { | ||
state: string; | ||
id_token: string; | ||
} | ||
|
||
@Injectable() | ||
export class SigninService { | ||
|
||
constructor(private httpClient: HttpClient) {} | ||
|
||
callback(params: Params): Observable<CallbackResponse> { | ||
return this.httpClient.get<any>(callbackPath, {headers: {skip: 'true'}, params}); | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.