Skip to content

[v12] Add login hooks.#25105

Merged
mdwn merged 1 commit intobranch/v12from
mike.wilson/v12-login-hooks
Apr 24, 2023
Merged

[v12] Add login hooks.#25105
mdwn merged 1 commit intobranch/v12from
mike.wilson/v12-login-hooks

Conversation

@mdwn
Copy link
Copy Markdown
Contributor

@mdwn mdwn commented Apr 24, 2023

Backport #24828 to branch/v12

* Add login hooks.

Login hooks have been added to support performing arbitrary operations on
user login. This is done to support generating of an Okta assignment on
user login for the Okta service feature.

* Don't use error channel for calling hooks, test login hooks.

* Expose ResetLoginHooks for external testing.

* Provide user as part of login hook.

* Update lib/auth/methods.go

Co-authored-by: Alan Parra <alan.parra@goteleport.com>

* Improve the documentation for LoginHook, AuthenticateUser returns types.User.

* Use user.GetName() instead of username in AuthenticateSSHUser response.

* Address nits and restore comments.

---------

Co-authored-by: Alan Parra <alan.parra@goteleport.com>
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from rosstimothy April 24, 2023 21:13
@mdwn mdwn added this pull request to the merge queue Apr 24, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 24, 2023
@mdwn mdwn added this pull request to the merge queue Apr 24, 2023
Merged via the queue into branch/v12 with commit 87ed6ca Apr 24, 2023
@mdwn mdwn deleted the mike.wilson/v12-login-hooks branch April 24, 2023 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants