AuthCodeController constructor

AuthCodeController(
  1. AuthServer? authServer, {
  2. AuthCodeControllerDelegate? delegate,
})

Creates a new instance of an AuthCodeController.

authServer is the required authorization server. If delegate is provided, this controller will return a login page for all GET requests.

Implementation

AuthCodeController(this.authServer, {this.delegate}) {
  acceptedContentTypes = [
    ContentType("application", "x-www-form-urlencoded")
  ];
}