Skip to content

Commit f82a4be

Browse files
authored
Bugfix (#4)
1 parent c34ec67 commit f82a4be

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Authentication and the Identity tokens are included in the responses.
2121

2222
- The errors are unstructured human-readable strings, useful for debugging
2323
purposes
24+
- Use of a custom `groups` scope
2425

2526
## Okta implementation
2627

@@ -43,6 +44,6 @@ $ ./script/token.sh <code value from previous response>
4344
## TODO
4445

4546
- Dockerfile
46-
- Doument httpie usage in scripts
47+
- Document httpie usage in scripts
4748
- Implement error responses as per RFCs
4849
- Logs

src/authorize/extractor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn response_type<'de, D: Deserializer<'de>>(d: D) -> Result<ResponseType, D::Err
7070
fn scope<'de, D: Deserializer<'de>>(d: D) -> Result<HashSet<Scope>, D::Error> {
7171
StringWithSeparator::<SpaceSeparator, Scope>::deserialize_as(d)
7272
.and_then(|s| validate_scope(s).map_err(serde::de::Error::custom))
73-
.map_err(|e| format!("error while parsing field `state`: {e}"))
73+
.map_err(|e| format!("error while parsing field `scope`: {e}"))
7474
.map_err(serde::de::Error::custom)
7575
}
7676

src/parameter/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pub enum TokenType {
4444
pub enum Scope {
4545
Address,
4646
Email,
47+
Groups,
4748
Openid,
4849
Phone,
4950
Profile,

0 commit comments

Comments
 (0)