# SSO redirection using Microsoft Oauth2 plugin(without login button)

**URL:** <https://meta.discourse.org/t/sso-redirection-using-microsoft-oauth2-plugin-without-login-button/105004>\
**Category:** SSO\
**Created:** [December 24, 2018, 12:14pm UTC](https://meta.discourse.org/t/sso-redirection-using-microsoft-oauth2-plugin-without-login-button/105004 "2018-12-24T12:14:43Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [December 26, 2018, 3:04pm UTC](https://meta.discourse.org/t/sso-redirection-using-microsoft-oauth2-plugin-without-login-button/105004/5 "2018-12-26T15:04:23Z")

</div>

In core this is all handled automagically by the login button, but if you did want to send a user somewhere special after login you can add the `?origin=` parameter to the `/auth` URL

For example: [http://try.discourse.org/auth/facebook?origin=/t/60](http://try.discourse.org/auth/facebook?origin=/t/60)

---

_[View the full topic](https://meta.discourse.org/t/sso-redirection-using-microsoft-oauth2-plugin-without-login-button/105004)._
