class Saml2Idp extends Model

Properties

protected $table

The table associated with the model.

protected $fillable

The attributes that are mass assignable.

protected $hidden

The attributes that should be hidden for serialization.

protected $casts

The attributes that should be cast.

Methods

static void
booted()

Prevent key from being changed after creation.

scopeActive($query)

Scope to only include active IDPs.

string
getLoginUrl()

Get the login URL for this IDP.

array
toIdpSettings()

Convert to onelogin/php-saml IDP settings array.

bool
isReady()

Check if the IDP is ready for use.

getMetadataValue(string $key, $default = null)

Get additional metadata value.

setMetadataValue(string $key, $value)

Set additional metadata value.

array
getAttributeMapping()

Get the effective attribute mapping for this IDP.

bool
hasCustomAttributeMapping()

Check if this IDP has custom attribute mapping.

Details

at line 52
static protected void booted()

Prevent key from being changed after creation.

Return Value

void

at line 64
scopeActive($query)

Scope to only include active IDPs.

Parameters

$query

at line 72
string getLoginUrl()

Get the login URL for this IDP.

Return Value

string

at line 80
array toIdpSettings()

Convert to onelogin/php-saml IDP settings array.

Return Value

array

at line 109
bool isReady()

Check if the IDP is ready for use.

Return Value

bool

at line 120
getMetadataValue(string $key, $default = null)

Get additional metadata value.

Parameters

string $key
$default

at line 128
Saml2Idp setMetadataValue(string $key, $value)

Set additional metadata value.

Parameters

string $key
$value

Return Value

Saml2Idp

at line 140
array getAttributeMapping()

Get the effective attribute mapping for this IDP.

Falls back to global config if IDP-specific mapping is empty.

Return Value

array

at line 154
bool hasCustomAttributeMapping()

Check if this IDP has custom attribute mapping.

Return Value

bool