MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / create_sso_provider_class

Function create_sso_provider_class

aiscript-vm/src/builtins/sso.rs:16–31  ·  view source on GitHub ↗
(ctx: Context)

Source from the content-addressed store, hash-verified

14use tokio::runtime::Handle;
15
16pub fn create_sso_provider_class(ctx: Context) -> GcRefLock<'_, Class> {
17 let mut sso_provider_class = Class::new(ctx.intern(b"SsoProvider"));
18 sso_provider_class.methods = [
19 (
20 ctx.intern(b"authority_url"),
21 Value::NativeFunction(crate::NativeFn(authority_url)),
22 ),
23 (
24 ctx.intern(b"verify"),
25 Value::NativeFunction(crate::NativeFn(verify)),
26 ),
27 ]
28 .into_iter()
29 .collect();
30 Gc::new(&ctx, RefLock::new(sso_provider_class))
31}
32
33type SsoProviderClient<
34 HasAuthUrl = EndpointSet,

Callers 1

inject_sso_instanceMethod · 0.85

Calls 2

NativeFnClass · 0.85
internMethod · 0.45

Tested by

no test coverage detected