pnp / pnp/pnpframework

Authenticate using username and password

Open
#950 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

replacing codes of OfficeDevPnP.Core with PnP.Framework,
and couldn't find any command for this method:
GetWebLoginClientContext(_siteUrl);

decided to use authentication with username and password as the app can't be registered on azure
var auth = new AuthenticationManager(_userName, secPass);
_ctx = auth.GetContext(_siteAddress);

but it takes a long time on GetContext and returns 'DisconnectedContext' error

can't use GetContextAsync either as it's used for get value of the property

anyone has idea for solution ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with AuthenticationManager(_userName, secPass), GetContext(_siteAddress), and GetContextAsync, then reproduce the delay and DisconnectedContext error. The issue names no files or tests; done would require a confirmed supported authentication path or a documented explanation of the failure and the unavailable GetWebLoginClientContext method.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
authentication
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.