OAuth2SecurityScheme class final

OAuth 2.0 authentication security configuration for systems conformant with RFC 6749, RFC 8252 and (for the device flow) RFC 8628, identified by the Vocabulary Term oauth2.

Inheritance

Constructors

OAuth2SecurityScheme(String flow, {String? authorization, List<String>? scopes, String? refresh, String? token, String? description, Map<String, String>? descriptions, Uri? proxy, List<String>? jsonLdType, Map<String, dynamic> additionalFields = const {}})
Constructor.
const
OAuth2SecurityScheme.fromJson(Map<String, dynamic> json, PrefixMapping prefixMapping, Set<String> parsedFields)
Creates a OAuth2SecurityScheme from a json object.
factory

Properties

additionalFields Map<String, dynamic>
Additional fields collected during the parsing of a JSON object.
finalinherited
authorization String?
URI of the authorization server.
final
description String?
The default description of this SecurityScheme.
finalinherited
descriptions Map<String, String>?
A Map of multi-language descriptions.
finalinherited
flow String
Authorization flow.
final
hashCode int
The hash code for this object.
no setterinherited
jsonLdType List<String>?
A List of JSON-LD @type annotations.
finalinherited
proxy Uri?
Uri of the proxy server this security configuration provides access to.
finalinherited
refresh String?
URI of the authorization server.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheme String
The actual security scheme identifier.
no setteroverride
scopes List<String>?
Set of authorization scope identifiers provided as an array.
final
token String?
URI of the token server.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this class object into a JSON value.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited