Hi Anna,
If you made your own theme, you can probably apply format_text or format_string on the alternatelogin URL field. But what you suggested could work too. Note that it is not just the sesskey that you need. You also need to pass the encoded URL parameter as this is where SSO
OAuth2 sends you after you successfully login.
I recently discovered a flaw in my approach which is preventing the login from working when I try to access a course directly using a link or bookmark before being logged in. I am going to need to rethink my approach over the next few days. I will try to remember to come back here to post an update when I figure it out. I really want to bypass the Moodle login screen and go directly to the Oauth2 login page.
Feel free to share your ideas if you have it working.
Best regards,
Michael
If you made your own theme, you can probably apply format_text or format_string on the alternatelogin URL field. But what you suggested could work too. Note that it is not just the sesskey that you need. You also need to pass the encoded URL parameter as this is where SSO
OAuth2 sends you after you successfully login.
I recently discovered a flaw in my approach which is preventing the login from working when I try to access a course directly using a link or bookmark before being logged in. I am going to need to rethink my approach over the next few days. I will try to remember to come back here to post an update when I figure it out. I really want to bypass the Moodle login screen and go directly to the Oauth2 login page.
Feel free to share your ideas if you have it working.
Best regards,
Michael