Skip to content
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

Change default login redirect behavior for CAS SSO plugin #48

Open
SteelWagstaff opened this issue Oct 22, 2020 · 0 comments
Open

Change default login redirect behavior for CAS SSO plugin #48

SteelWagstaff opened this issue Oct 22, 2020 · 0 comments

Comments

@SteelWagstaff
Copy link
Member

When a user logins from the main Pressbooks landing page they are currently returned to that page as a logged in user. They can't do much except create a new book, however.

A better experience would be the following:

If the user does not have an existing book -- they are redirected to https://network.url/wp/wp-admin/user
If the user does have an existing book -- they are redirected to https://network.url/wp/wp-admin
See TK
for current login-redirection behavior

Pseudo code with possible solution at https://github.com/pressbooks/pressbooks-oidc-sso/issues/28#issuecomment-707330562

We can also control what appears to the user on the user dashboard page by looking at https://github.com/pressbooks/pressbooks/blob/716d50e7d65c27c1e5acef9379fa19069855e039/inc/admin/dashboard/namespace.php#L50-L161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant