Giter Site home page Giter Site logo

adobeuminterface's People

Contributors

michaelosmith avatar robinherbert avatar scottlinton avatar sjanderton avatar skywayskase avatar x2on avatar zincarla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

adobeuminterface's Issues

Test and utilize PowerShell Core

PowerShell core has improvements to Invoke-RestMethod that will allow parsing of HTTP headers. Better error handling from API error responses. Need to test current functionality in PowerShell core, then implement the headers variable to handle http error codes.

Getting error "Exception calling "SignData" with "3" argument(s): "Invalid algorithm specified."

Any ideas? I believe I have followed the steps correctly.

Exception calling "SignData" with "3" argument(s): "Invalid algorithm specified.
"
At C:\Program Files\WindowsPowerShell\Modules\AdobeUMInterface\AdobeUMInterface.psm1:401 char:5

  • $JWTSig = ConvertTo-Base64URL -Item ($SignatureCert.PrivateKey.Si ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : CryptographicException

Use an already installed certificate instead of a PFX file

Thank you for all of your great work as it has saved me considerable time. I have a need to only use pre-installed certificates rather than exported and i noticed in your code about a comment that you were unable to get the private key using PS certificate provider, cert:.

You can use the GetRSAPrivateKey method from System.Security.Cryptography.X509Certificates.RSACertificateExtensions to achieve this. I have tested the below code in my own project and it works. (hope the formatting comes out ok.)

function Get-CertPrivateKey
{
	[cmdletbinding()]
	Param
	(
		[Parameter(Mandatory = $true,ValueFromPipeline = $true,ParameterSetName="ByObject")]
		[System.Security.Cryptography.X509Certificates.X509Certificate2]$Certificate,
		[Parameter(Mandatory = $true,ParameterSetName="ByCertHash")]
		[string]$thumbprint
	)
	
	if($PsCmdlet.ParameterSetName -eq "ByCertHash"){
		$Certificate = Get-ChildItem cert: -Recurse | where-object{ $_.Thumbprint -eq "$thumbprint" } | Select-Object -last 1
	}
	
	$rsaKey = [System.Security.Cryptography.X509Certificates.RSACertificateExtensions]::GetRSAPrivateKey($certificate)
	return $rsaKey
}

Hope it helps.

function Get-AdobeAuthToken Validation Issue

Current Line:
[ValidateScript({$_.Token -ne $null})]

Should Be:

[ValidateScript({$_.Token -eq $null})]

Function errored out on me until i changed that line. Function's purpose is to change $ClientInformation.Token from a $null value to the token generated by function.

Also thank you for this code! You saved me hours upon hours of work. You rule.

Throttle in Get-AdobeUsers function not working

@zincarla the throttle code in the Get-AdobeUsers function doesn't work, because the values it's looking for never exist. I've implemented my own code, which seems to work. So submitted it via a Pull request.
I hope this is the right way, since this is my first contribution to Git!
BTW: been using your module for several months now with no issues, until Monday morning when I ran into the throttle issue. I guess Adobe changed something! In my case, pulling back c.4800 users, which seems to need about 24 page requests to complete. Now throttles every 6 page requests. So if you have less than 1200 users to pull back, you may never hit the issue.

Create federated user issue

Hey!
Thanks for the great powershell modul - Love the work!

I'm having some issues with creating a federated user.
I keep gettings this error:
errors : {@{index=0; step=0; message=Domain field only allowed for non-email user names; errorCode=error.command.domain.must_be_used_with_nonemail_username}}

The reques is like this: $Request = New-CreateUserRequest -FirstName "John" -LastName "Doe" -Email "[email protected]" -IDType federated -Domain domain.com

I have tried mulitple combations but i keep ending up with that error or another error.

Can you tell me if there is a bug? or I'm i doing it wrong? - I could not find an example on how to create a fredated user, even though a read the entire function in the modul.
Can you prove me with an example on how to create a federated user?

Unable to read Private Key

Hi,

I am running your script and so far all good.
But, when I try to run the Get-AdobeAuthToken -ClientInformation $ClientInformation -SignatureCert $SignatureCert it gives an error about the Private Key being Null.
I know the cert has a private key as I can see in windows it says it does.

Any thoughts on what might be going on??

Cheers

Issues contacting domain can cause full user wipe

If you have a sync on a schedule to automatically replicate an AD group, and the domain is unavailable, then this may wipe all users from Adobe as the script assumes all users deleted. Need to try-catch this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.