MastodonCredentialApplication class

OAuth application registration response model.

Corresponds to the response from POST /api/v1/apps. Includes client credentials in addition to the MastodonApplication fields.

Annotations

Constructors

MastodonCredentialApplication({required String id, required String name, String? website, required List<String> scopes, required List<String> redirectUris, @Deprecated('Use redirectUris instead') String? redirectUri, required String clientId, required String clientSecret, required int clientSecretExpiresAt})
Creates a MastodonCredentialApplication with the given fields.
const
MastodonCredentialApplication.fromJson(Map<String, dynamic> json)
Creates a MastodonCredentialApplication from a JSON map.
factory

Properties

clientId String
Client ID used for obtaining OAuth tokens.
final
clientSecret String
Client secret used for obtaining OAuth tokens.
final
clientSecretExpiresAt int
Expiration time of the client secret (currently always 0).
final
hashCode int
The hash code for this object.
no setterinherited
id String
Database ID of the application.
final
name String
Name of the application.
final
redirectUri String?
Redirect URI (deprecated, for backward compatibility).
final
redirectUris List<String>
List of registered redirect URIs.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes List<String>
Scopes granted to the application.
final
website String?
Website URL of the application.
final

Methods

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

Operators

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