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

MG-2456 - Refactor auth #2409

Merged
merged 42 commits into from
Oct 24, 2024
Merged

Conversation

arvindh123
Copy link
Contributor

@arvindh123 arvindh123 commented Sep 3, 2024

What type of PR is this?

This is a feature because it adds the following functionality mentioned in following tickets

What does this do?

It adds the features mentioned in this ticket #2456

Which issue(s) does this PR fix/relate to?

Have you included tests for your changes?

Yes , Tested manually

Did you document any new/modified feature?

No

Notes

@dborovcanin dborovcanin changed the title NOISSUE: Add Role to entities. NOISSUE: Add Role to entities Sep 24, 2024
@dborovcanin dborovcanin changed the title NOISSUE: Add Role to entities NOISSUE - Add Role to entities Sep 24, 2024
Signed-off-by: Arvindh <[email protected]>
Signed-off-by: Arvindh <[email protected]>
Signed-off-by: Arvindh <[email protected]>
Signed-off-by: Arvindh <[email protected]>
Signed-off-by: Arvindh <[email protected]>
Signed-off-by: Arvindh <[email protected]>
Signed-off-by: Arvindh <[email protected]>
Signed-off-by: Arvindh <[email protected]>
Signed-off-by: Arvindh <[email protected]>
@dborovcanin dborovcanin changed the title NOISSUE - Add Role to entities MG-2456 - Refactor auth Oct 8, 2024
@dborovcanin
Copy link
Collaborator

@arvindh123 Please update the description and link all the relevant issues.

"github.com/absmach/magistrala/pkg/apiutil"
"github.com/absmach/magistrala/pkg/errors"
svcerr "github.com/absmach/magistrala/pkg/errors/service"
"github.com/absmach/magistrala/things"
pThings "github.com/absmach/magistrala/things/private"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to things.

"github.com/absmach/magistrala/things"
)

type Service interface {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a doc comment that service is just a wrapper around Repository. Also add a doc.go that explains the purpose of private package and Service.

@@ -8,59 +8,46 @@ import (

"github.com/absmach/magistrala"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an alias mg. It's shorter and unambiguous.

Signed-off-by: Arvindh <[email protected]>
Copy link
Collaborator

@dborovcanin dborovcanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still WIP, but we are merging to simplify review process.

@dborovcanin dborovcanin merged commit 15df251 into absmach:auth-refactor Oct 24, 2024
1 of 2 checks passed
@dborovcanin dborovcanin deleted the add_organization branch October 24, 2024 14:41
@dborovcanin dborovcanin restored the add_organization branch October 24, 2024 14:41
dborovcanin pushed a commit that referenced this pull request Oct 25, 2024
dborovcanin pushed a commit that referenced this pull request Oct 28, 2024
dborovcanin pushed a commit that referenced this pull request Oct 28, 2024
Signed-off-by: Arvindh <[email protected]>
Signed-off-by: Dusan Borovcanin <[email protected]>
nyagamunene pushed a commit to nyagamunene/magistrala that referenced this pull request Oct 28, 2024
nyagamunene pushed a commit to nyagamunene/magistrala that referenced this pull request Oct 29, 2024
Signed-off-by: Arvindh <[email protected]>
Signed-off-by: Dusan Borovcanin <[email protected]>
Signed-off-by: nyagamunene <[email protected]>
dborovcanin pushed a commit that referenced this pull request Oct 31, 2024
- Set/Unset parent Group for Things and Channels (#2486)
- Move groups out of pkg (#2493)
- Separate Things authn and Channels authz (#2496)

Signed-off-by: Arvindh <[email protected]>
arvindh123 added a commit to arvindh123/magistrala that referenced this pull request Oct 31, 2024
- Set/Unset parent Group for Things and Channels (absmach#2486)
- Move groups out of pkg (absmach#2493)
- Separate Things authn and Channels authz (absmach#2496)

Signed-off-by: Arvindh <[email protected]>
dborovcanin pushed a commit that referenced this pull request Nov 4, 2024
- Set/Unset parent Group for Things and Channels (#2486)
- Move groups out of pkg (#2493)
- Separate Things authn and Channels authz (#2496)

Signed-off-by: Arvindh <[email protected]>
arvindh123 added a commit to arvindh123/magistrala that referenced this pull request Nov 4, 2024
- Set/Unset parent Group for Things and Channels (absmach#2486)
- Move groups out of pkg (absmach#2493)
- Separate Things authn and Channels authz (absmach#2496)

Signed-off-by: Arvindh <[email protected]>
arvindh123 added a commit to arvindh123/magistrala that referenced this pull request Nov 4, 2024
- Set/Unset parent Group for Things and Channels (absmach#2486)
- Move groups out of pkg (absmach#2493)
- Separate Things authn and Channels authz (absmach#2496)

Signed-off-by: Arvindh <[email protected]>
arvindh123 added a commit to arvindh123/magistrala that referenced this pull request Nov 5, 2024
- Set/Unset parent Group for Things and Channels (absmach#2486)
- Move groups out of pkg (absmach#2493)
- Separate Things authn and Channels authz (absmach#2496)

Signed-off-by: Arvindh <[email protected]>
nyagamunene pushed a commit to nyagamunene/magistrala that referenced this pull request Nov 7, 2024
- Set/Unset parent Group for Things and Channels (absmach#2486)
- Move groups out of pkg (absmach#2493)
- Separate Things authn and Channels authz (absmach#2496)

Signed-off-by: Arvindh <[email protected]>
nyagamunene pushed a commit to nyagamunene/magistrala that referenced this pull request Nov 7, 2024
- Set/Unset parent Group for Things and Channels (absmach#2486)
- Move groups out of pkg (absmach#2493)
- Separate Things authn and Channels authz (absmach#2496)

Signed-off-by: Arvindh <[email protected]>
Signed-off-by: nyagamunene <[email protected]>
nyagamunene pushed a commit to nyagamunene/magistrala that referenced this pull request Nov 10, 2024
- Set/Unset parent Group for Things and Channels (absmach#2486)
- Move groups out of pkg (absmach#2493)
- Separate Things authn and Channels authz (absmach#2496)

Signed-off-by: Arvindh <[email protected]>
arvindh123 added a commit to arvindh123/magistrala that referenced this pull request Nov 12, 2024
- Set/Unset parent Group for Things and Channels (absmach#2486)
- Move groups out of pkg (absmach#2493)
- Separate Things authn and Channels authz (absmach#2496)

Signed-off-by: Arvindh <[email protected]>
arvindh123 added a commit to arvindh123/magistrala that referenced this pull request Nov 12, 2024
- Set/Unset parent Group for Things and Channels (absmach#2486)
- Move groups out of pkg (absmach#2493)
- Separate Things authn and Channels authz (absmach#2496)

Signed-off-by: Arvindh <[email protected]>

NOISSUE - Add Publish/Subscribe to channels (absmach#2497)

Signed-off-by: Arvindh <[email protected]>

MG-2457 - Update auth tests (absmach#2503)

Signed-off-by: Felix Gateru <[email protected]>

MG-2477 - Replace Things with Clients (absmach#2508)

Signed-off-by: Dusan Borovcanin <[email protected]>
arvindh123 added a commit to arvindh123/magistrala that referenced this pull request Nov 18, 2024
- Set/Unset parent Group for Things and Channels (absmach#2486)
- Move groups out of pkg (absmach#2493)
- Separate Things authn and Channels authz (absmach#2496)

Signed-off-by: Arvindh <[email protected]>

NOISSUE - Add Publish/Subscribe to channels (absmach#2497)

Signed-off-by: Arvindh <[email protected]>

MG-2457 - Update auth tests (absmach#2503)

Signed-off-by: Felix Gateru <[email protected]>

MG-2477 - Replace Things with Clients (absmach#2508)

Signed-off-by: Dusan Borovcanin <[email protected]>

NOISSUE - Rename Things to Clients

Signed-off-by: Felix Gateru <[email protected]>
Signed-off-by: Arvindh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants