You can configure each realm to show a custom page before the user authenticates and is sent to the target application. This page can be used to capture more user information or to approve terms and conditions, ...
The following section describes how you can create your own Plugin which will be invoked to determine the page where the user will be redirected

Before Authorize Page

An apex class which implements the standard Salesforce Callable and handles an action before:authorize:page.
The action will be passed the following parameters
request : Map<String, Object> : The request parameters
user : Id : The Salesforce SObject Id for the user for whom the authentication is requested
The expected return is a String which is the URL for the page where the user should be redirected. If the returned value is null, the user flow will continue without redirecting the user

Example :

MyOIDCProviderCallable.cls
1global class MyOIDCProviderCallable implements Callable {
2 global Object call(String action, Map<String, Object> args) {
3 if (action == 'before:authorize:page') {
4 return '/moreInfo';
5 }
6 return null;
7 }
8}