Skip to content

[v13] Add login hooks.#25106

Merged
mdwn merged 1 commit intobranch/v13from
mike.wilson/v13-login-hooks
Apr 25, 2023
Merged

[v13] Add login hooks.#25106
mdwn merged 1 commit intobranch/v13from
mike.wilson/v13-login-hooks

Conversation

@mdwn
Copy link
Copy Markdown
Contributor

@mdwn mdwn commented Apr 24, 2023

Backport #24828 to branch/v13

* 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 25, 2023 16:13
@mdwn mdwn added this pull request to the merge queue Apr 25, 2023
Merged via the queue into branch/v13 with commit ace1a73 Apr 25, 2023
@mdwn mdwn deleted the mike.wilson/v13-login-hooks branch April 25, 2023 16:38
@r0mant r0mant mentioned this pull request Jul 14, 2023
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