render abstract method Null safety
Returns an HTML representation of a login form.
Invoked when AuthCodeController.getAuthorizationPage is called in response to a GET request.
Must provide HTML that will be returned to the browser for rendering. This form submission of this page
should be a POST to requestUri
.
The form submission should include the values of responseType
, clientID
, state
, scope
as well as user-entered username and password in x-www-form-urlencoded
data, e.g.
POST https://example.com/auth/code
Content-Type: application/x-www-form-urlencoded
response_type=code&client_id=com.conduit.app&state=o9u3jla&username=bob&password=password
If not null, scope
should also be included as an additional form parameter.
Implementation
Future<String> render(
AuthCodeController forController,
Uri requestUri,
String? responseType,
String? clientID,
String? state,
String? scope,
);