tweaked error messages
parent
18ddd8333f
commit
f265347311
|
@ -116,10 +116,10 @@ public class IntrospectionEndpoint {
|
||||||
throw new InvalidScopeException("Tried to introspect a token of different scope");
|
throw new InvalidScopeException("Tried to introspect a token of different scope");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new InvalidClientException("Clients can't introspect.");
|
throw new InvalidClientException("Client is not allowed to call introspection endpoint.");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new InvalidClientException("No client found.");
|
throw new InvalidClientException("Client not found.");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue