UserInfoResponse

@Serializable
data class UserInfoResponse(val sub: String, val name: String? = null, val picture: String? = null, val preferredUsername: String? = null, val email: String? = null, val emailVerified: Boolean? = null, val roles: List<String>? = null)

OpenID Connect UserInfo Response OIDC Core Section 5.3.2 準拠

スコープに応じて返却されるクレームが決定される:

  • openid: sub(必須)

  • profile: name, picture, preferred_username

  • email: email, email_verified

  • roles: roles(LuckPermsのグループ情報)

Constructors

Link copied to clipboard
constructor(sub: String, name: String? = null, picture: String? = null, preferredUsername: String? = null, email: String? = null, emailVerified: Boolean? = null, roles: List<String>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

ユーザーのメールアドレス(emailスコープが必要)

Link copied to clipboard
@SerialName(value = "email_verified")
val emailVerified: Boolean?

メールアドレスの検証状態(常にfalse)

Link copied to clipboard
val name: String?

ユーザーのフルネーム(Minecraftではプレイヤー名と同一)

Link copied to clipboard

ユーザーのプロフィール画像URL(profileスコープが必要)

Link copied to clipboard
@SerialName(value = "preferred_username")
val preferredUsername: String?

OIDC標準のユーザー名(profileスコープが必要)

Link copied to clipboard

LuckPermsのグループ名一覧(rolesスコープが必要)

Link copied to clipboard
val sub: String

Subject Identifier - ユーザーの一意識別子(UUID形式)