-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth jetstream refactor #3882
Auth jetstream refactor #3882
Conversation
Signed-off-by: Kate E. Reinecke <50168367+kreinecke@users.noreply.github.com>
Signed-off-by: Kate E. Reinecke <50168367+kreinecke@users.noreply.github.com>
Signed-off-by: Kate E. Reinecke <50168367+kreinecke@users.noreply.github.com>
Signed-off-by: Kate E. Reinecke <50168367+kreinecke@users.noreply.github.com>
Signed-off-by: Kate E. Reinecke <50168367+kreinecke@users.noreply.github.com>
Signed-off-by: Kate E. Reinecke <50168367+kreinecke@users.noreply.github.com>
Signed-off-by: Kate E. Reinecke <50168367+kreinecke@users.noreply.github.com>
Signed-off-by: Kate E. Reinecke <50168367+kreinecke@users.noreply.github.com>
…nd login auth groups Signed-off-by: Kate E. Reinecke <50168367+kreinecke@users.noreply.github.com>
✅ Hey kreinecke! The commit authors and yourself have already signed the CLA. |
Codecov Report
@@ Coverage Diff @@
## v2-master #3882 +/- ##
==========================================
Coverage 52.21% 52.21%
==========================================
Files 785 785
Lines 23017 23017
Branches 4124 4124
==========================================
Hits 12019 12019
Misses 10998 10998 |
Signed-off-by: Kate E. Reinecke <50168367+kreinecke@users.noreply.github.com>
Signed-off-by: Kate E. Reinecke <50168367+kreinecke@users.noreply.github.com>
Signed-off-by: Kate E. Reinecke <50168367+kreinecke@users.noreply.github.com>
Signed-off-by: Kate E. Reinecke <50168367+kreinecke@users.noreply.github.com>
@nwmac Did you review this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of comments
@@ -126,6 +126,10 @@ func (ch *CFHosting) Init() error { | |||
|
|||
//Force auth endpoint type to remote (CF UAA) | |||
ch.portalProxy.GetConfig().ConsoleConfig.AuthEndpointType = "remote" | |||
err := ch.portalProxy.InitStratosAuthService(interfaces.Remote) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to do the init here? Its done in main.go.
We override the type to remote - so won't the init in main.go do the right thing?
If so, we can remove InitStratosAuthService from the interface we expose to plugins
GetEndpointTypeSpec(typeName string) (EndpointPlugin, error) | ||
|
||
// Auth | ||
InitStratosAuthService(t AuthEndpointType) error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good not to expose this to plugins.
|
Codecov Report
@@ Coverage Diff @@
## master #3882 +/- ##
=======================================
Coverage 61.12% 61.12%
=======================================
Files 860 860
Lines 29359 29359
Branches 4294 4294
=======================================
Hits 17945 17945
Misses 11414 11414 |
* master: Add clean routes to e2e-clean-remnants (#4007) Auth jetstream refactor (#3882) Remove page nav not needed Local user account docs (#3952) Fix go mod files (#3986) Update references following graduation Ensure build cache upload fail does not fail job (#3994) Fixes issue properly Preparation for 2.6.0 Release Fix alignment of user button on newer Firefox Fix cert gen on Mac OSX 10.15
* master: (38 commits) CC fixes When viewing enpoint events, provide an endpoint only events view. Change error time period to 30 minutes Fixed exception Minor endpoint page changes Update events page slightly Fix app summay page warning for autoscaler check Fix unit tests Tidy up Finish wiring in of notification bar to errors, fix issue with multiple triggered events for same config Only show bell when there's notifications (whether read or unread) Allow notifications to be marked as 'read' - read notifications will not be shown in the alarm bell count WIP Add clean routes to e2e-clean-remnants (#4007) Tie in error state to notifications Allow notifications to be marked as 'read' - read notifications will not be shown in the alarm bell count Fix unit tests Fix exception on endpoint errors Linting Auth jetstream refactor (#3882) ...
Refactor UAA and Local login auth code.