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

module 'msal' has no attribute 'PublicClientApplication' #823

Open
jkr377 opened this issue Feb 14, 2024 · 2 comments
Open

module 'msal' has no attribute 'PublicClientApplication' #823

jkr377 opened this issue Feb 14, 2024 · 2 comments
Labels

Comments

@jkr377
Copy link

jkr377 commented Feb 14, 2024

ctx = ClientContext("https://...sharepoint.com").with_interactive(tenant=st.secrets['tenant_id'], client_id=st.secrets['client_id'],scopes=["User.Read", "Sites.Read.All", "Sites.ReadWrite.All" ,"Files.ReadWrite.All"]) web = ctx.web ctx.load(web) ctx.execute_query() st.session_state.sharepointPageInfo = "Web2 title: {0}".format(web.properties['Title'])

I want access to sharepoint via msal and/or office365 REST

But it will not function because in msal package it cant find PublicClientApplication, but it's still there.

Is this an issue from Office365 Rest package or MSAL packagage?

Many thanks.

Or do I have to do something else to authenticate?

@jkr377
Copy link
Author

jkr377 commented Feb 14, 2024

st.session_state.sharepointPageInfo is only a variable to store pagetitle from Sharepoint, to verify that I am connected right.

@jkr377
Copy link
Author

jkr377 commented Feb 14, 2024

But the issue seems to be in the package.
Because it cant access msal, but i have installed it .

my goal is to upload files to a sharepoint site

@vgrem vgrem added the question label Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants