pub struct PlatformData {
pub issuer: String,
pub name: Option<String>,
pub jwks_url: String,
pub token_url: String,
pub oidc_url: String,
}Expand description
Platform configuration data
Contains all necessary configuration for an LMS platform (e.g., Canvas, Moodle, Blackboard). This data is typically obtained during dynamic registration or manual platform configuration.
§Fields
issuer- The platform’s issuer URL (e.g., “https://canvas.instructure.com”)name- Optional human-readable name for the platformjwks_url- JWKS endpoint URL for validating the platform’s JWT signaturestoken_url- OAuth2 token endpoint URL for obtaining access tokensoidc_url- OIDC authentication endpoint URL for initiating LTI launches
§Examples
use atomic_lti::stores::platform_store::PlatformData;
let platform = PlatformData {
issuer: "https://canvas.instructure.com".to_string(),
name: Some("Canvas LMS".to_string()),
jwks_url: "https://canvas.instructure.com/api/lti/security/jwks".to_string(),
token_url: "https://canvas.instructure.com/login/oauth2/token".to_string(),
oidc_url: "https://canvas.instructure.com/api/lti/authorize_redirect".to_string(),
};Fields§
§issuer: StringLMS platform issuer URL (e.g., “https://canvas.instructure.com”)
name: Option<String>Human-readable platform name
jwks_url: StringJWKS endpoint URL for validating platform’s signatures
token_url: StringOAuth2 token endpoint URL
oidc_url: StringOIDC authentication endpoint URL
Trait Implementations§
Source§impl Clone for PlatformData
impl Clone for PlatformData
Source§fn clone(&self) -> PlatformData
fn clone(&self) -> PlatformData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlatformData
impl Debug for PlatformData
Source§impl<'de> Deserialize<'de> for PlatformData
impl<'de> Deserialize<'de> for PlatformData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PlatformData
impl RefUnwindSafe for PlatformData
impl Send for PlatformData
impl Sync for PlatformData
impl Unpin for PlatformData
impl UnwindSafe for PlatformData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more