Skip to main content

parse_rbac_token

Function parse_rbac_token 

Source
fn parse_rbac_token(token: &str) -> Result<(String, String), &'static str>
Expand description

Parses a V1#<appid>#<wolf_token> rbac token into (appid, wolf_token). Errors on the wrong version prefix or the wrong number of # segments.