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

Refactor authorization.go: Clean & Disable #65

Closed
Feyzanrs opened this issue May 17, 2024 · 0 comments
Closed

Refactor authorization.go: Clean & Disable #65

Feyzanrs opened this issue May 17, 2024 · 0 comments
Assignees
Labels
Be development Issues or tasks currently in active development refactor Improvements or restructuring of existing functionality

Comments

@Feyzanrs
Copy link
Member

Feyzanrs commented May 17, 2024

We need to streamline the authorization.go file located in the internal/application/service directory by removing unnecessary imports and temporarily disabling the CheckAuth method. The specific changes involve removing the "context" import and the protobuf (pb) import, as they are no longer in use due to the deactivation of the CheckAuth method.

The new version of the code:

package application

// CheckAuth returns true if the user is authorized to perform the action.
// func (a *Service) CheckAuth(ctx context.Context, authRequest *pb.AuthRequest) (*pb.AuthResponse, error) {
//     return a.ServicePort.CheckAuth(ctx, authRequest)
// }

Additionally, please make sure to push all changes to the feature/hsm/58/auth-service branch.

@Feyzanrs Feyzanrs changed the title Update authorization.go: Remove Imports & Disable Code Refactor authorization.go: Clean & Disable May 17, 2024
@Feyzanrs Feyzanrs added refactor Improvements or restructuring of existing functionality development Issues or tasks currently in active development labels May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Be development Issues or tasks currently in active development refactor Improvements or restructuring of existing functionality
Projects
None yet
Development

No branches or pull requests

4 participants