Implement P05 checked services and safe selected delivery recovery
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a092fe-13b1-7f12-ac74-7d258af4d79c
This commit is contained in:
parent
187c49abe5
commit
aa709fb854
3 changed files with 11 additions and 0 deletions
|
|
@ -124,6 +124,11 @@ func (a *PrivacyIDEAAdapter) hasActiveToken(ctx context.Context, userID string)
|
|||
return false, nil
|
||||
}
|
||||
|
||||
// Probe checks the current mounted credential and realm visibility without reading a user factor.
|
||||
func (a *PrivacyIDEAAdapter) Probe(ctx context.Context) error {
|
||||
return a.verifyReadScope(ctx)
|
||||
}
|
||||
|
||||
// verifyReadScope distinguishes no enrolled factor from lost realm visibility.
|
||||
// privacyIDEA returns a successful empty list for a reader with withdrawn rights.
|
||||
func (a *PrivacyIDEAAdapter) verifyReadScope(ctx context.Context) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue