Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce feature helper modules visibility to pub(super) #5

Merged
merged 2 commits into from
Jul 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
- Add code documentation ([#3](https://github.com/ristekoss/rust-sso-ui-jwt/pull/3)) ([@nayyara-airlangga])
- Create SSO user struct ([#4](https://github.com/ristekoss/rust-sso-ui-jwt/pull/4)) ([@nayyara-airlangga])

### Changed
- Reduce feature helper modules visibility to `pub(super)` ([#5](https://github.com/ristekoss/rust-sso-ui-jwt/pull/5)) ([@nayyara-airlangga])


## [v0.1.1] - 2022-07-29

Expand Down
6 changes: 3 additions & 3 deletions src/ticket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
//! authorization mechanism to the CAS server and if valid will return an XML response that
//! contains the user data if successful and an error if it fails.

pub mod error;
pub mod handler;
pub mod payload;
pub(super) mod error;
pub(super) mod handler;
pub(super) mod payload;

pub use error::ValidateTicketError;
pub use handler::validate_ticket;
Expand Down
4 changes: 2 additions & 2 deletions src/token/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! JWT utilities and claims for user data.

pub mod handler;
pub mod payload;
pub(super) mod handler;
pub(super) mod payload;

pub use handler::{create_token, decode_token};
pub use payload::{SSOJWTClaims, SSOUser, TokenType};