How to Implement Callback Page in admin login ?

I need to implement an OAuth2 callback page. After the user login via the OAuth2 provider, this page should receive the authorization code and then call a function named validateCallback. What are the recommended steps for this?
Was this page helpful?