SilverStripe JWT

MemberExtension extends DataExtension
in package

Class MemberExtension Add a unique token to the Member for extra validation

Table of Contents

Properties

$owner  : Member|MemberExtension
$has_many  : array<string|int, mixed>
$jwt_subject_fields  : array<string|int, mixed>
List of names of extra subject fields to add to JWT token

Methods

AuthTokens()  : HasManyList|array<string|int, JWTRecord>
destroyAuthTokens()  : Member
Destroy all JWT tokens
getJWTData()  : string
Option to add data to the JWT Subject
updateCMSFields()  : mixed

Properties

$has_many

private static array<string|int, mixed> $has_many = ['AuthTokens' => \Firesphere\GraphQLJWT\Model\JWTRecord::class]
Tags
config

$jwt_subject_fields

List of names of extra subject fields to add to JWT token

private static array<string|int, mixed> $jwt_subject_fields = []
Tags
config

Methods

destroyAuthTokens()

Destroy all JWT tokens

public destroyAuthTokens() : Member
Return values
Member

getJWTData()

Option to add data to the JWT Subject

public getJWTData() : string
Return values
string

updateCMSFields()

public updateCMSFields(FieldList $fields) : mixed
Parameters
$fields : FieldList

        
On this page

Search results