-
Notifications
You must be signed in to change notification settings - Fork 0
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
[MI-3082]: Fixed the issue 198 'Added the logic to refresh and store the token' #7
Changes from 2 commits
e58d5ab
c1dfd90
f78628c
848fefe
059b440
4937b66
d4922cb
a649090
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ import ( | |
msgraph "github.com/yaegashi/msgraph.go/v1.0" | ||
|
||
"github.com/mattermost/mattermost-plugin-mscalendar/server/config" | ||
"github.com/mattermost/mattermost-plugin-mscalendar/server/serializer" | ||
"github.com/mattermost/mattermost-plugin-mscalendar/server/utils/bot" | ||
) | ||
|
||
|
@@ -21,9 +22,10 @@ type client struct { | |
httpClient *http.Client | ||
rbuilder *msgraph.GraphServiceRequestBuilder | ||
|
||
conf *config.Config | ||
bot.Logger | ||
mattermostUserID string | ||
conf *config.Config | ||
tokenHelpers *serializer.UserTokenHelpers | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mickmister I have moved this to the remote package |
||
|
||
checkUserStatus func() bool | ||
changeUserStatus func(error) | ||
bot.Logger | ||
bot.Poster | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be
MakeUserClient
instead?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mickmister I guess this gets run during the Oauth, so I thought this won't need the refresh token part here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say that we should still call
MakeUserClient
, to differentiate that this is a client for a user, and not a superuser client