octoposprime / op-be-graphql

OctopOS Prime Backend Api Gateway
http://www.octoposprime.com
MIT License
13 stars 1 forks source link

Refactor authorization.go: Clean & Disable #65

Closed Feyzanrs closed 3 months ago

Feyzanrs commented 3 months ago

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.