diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-26 04:20:43 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-26 04:20:43 -0500 |
commit | ea8beb985247aac4345ecefc8ec551f52f5f1a24 (patch) | |
tree | 7288af40b291e03252cfca7bb4654b63181776ed /teleterm/src/error.rs | |
parent | cc5a3f9056fe1b563dbb40d51b1621769150c08d (diff) | |
download | teleterm-ea8beb985247aac4345ecefc8ec551f52f5f1a24.tar.gz teleterm-ea8beb985247aac4345ecefc8ec551f52f5f1a24.zip |
allow multiple oauth configurations using the same auth type
this should allow us to configure a separate oauth application for tt
web than normal (since the redirect_url needs to be different)
Diffstat (limited to 'teleterm/src/error.rs')
-rw-r--r-- | teleterm/src/error.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/teleterm/src/error.rs b/teleterm/src/error.rs index 9cc0ca7..f7946dd 100644 --- a/teleterm/src/error.rs +++ b/teleterm/src/error.rs @@ -107,6 +107,12 @@ pub enum Error { #[snafu(display("failed to find any resolvable addresses"))] HasResolvedAddr, + #[snafu(display("invalid auth client {}", ty))] + InvalidAuthClient { ty: u8 }, + + #[snafu(display("invalid auth client {}", ty))] + InvalidAuthClientStr { ty: String }, + #[snafu(display("invalid auth type {}", ty))] InvalidAuthType { ty: u8 }, @@ -143,13 +149,15 @@ pub enum Error { NotAFileName { path: String }, #[snafu(display( - "missing oauth configuration item {} for auth type {}", + "missing oauth configuration item {} for section oauth.{}.{}", field, auth_type.name(), + auth_client.name(), ))] OauthMissingConfiguration { field: String, auth_type: crate::protocol::AuthType, + auth_client: crate::protocol::AuthClient, }, #[snafu(display("failed to open file {}: {}", filename, source))] |