(subject: &str)
| 100 | use crate::auth::principal::{SandboxIdentitySource, SandboxPrincipal, UserPrincipal}; |
| 101 | |
| 102 | fn user(subject: &str) -> Principal { |
| 103 | Principal::User(UserPrincipal { |
| 104 | identity: Identity { |
| 105 | subject: subject.to_string(), |
| 106 | display_name: None, |
| 107 | roles: vec![], |
| 108 | scopes: vec![], |
| 109 | provider: IdentityProvider::Oidc, |
| 110 | }, |
| 111 | }) |
| 112 | } |
| 113 | |
| 114 | fn sandbox(id: &str) -> Principal { |
| 115 | Principal::Sandbox(SandboxPrincipal { |
no outgoing calls