Post

Replies

Boosts

Views

Activity

Apple Sign In for Web
Hello, I have created a Swift app which has Apple Sign In integrated with it. We now want to add Apple Sign In to a web app but can't seem to find enough documentation on how to do this. We have followed the instructions at https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_js/configuring_your_webpage_for_sign_in_with_apple and have ended up with a script like so: <head> <meta name="appleid-signin-client-id" content="colourworker.SPAD"> <meta name="appleid-signin-scope" content="name email"> <meta name="appleid-signin-redirect-uri" content="https://colourworker.com/apps/photofolia/applesignedin.html"> <meta name="appleid-signin-state" content="init"> <meta name="appleid-signin-nonce" content="NONCE"> <meta name="appleid-signin-use-popup" content="true"> </head> <body> <h1>Sign in with Apple</h1> <div id="appleid-signin" data-color="black" data-border="true" data-type="sign in"></div> <script type="text/javascript" src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js"></script> </head> </html> But have we populated the client-id, state, and NONCE correctly? When clicking on the Sign In with Apple button we get the error in this screenshot: I look forward to hearing from someone. Kind regards, Miguel
1
0
880
Dec ’23
Sign In with Apple for Web Page
Hello, I have integrated Sign In with Apple into my Swift App. Now I'd like to add Sign In with Apple into my website. I followed the instructions at https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_js/configuring_your_webpage_for_sign_in_with_apple and resulted in an html page: <html> <head> <meta name="appleid-signin-client-id" content="colourworker.SPAD"> <meta name="appleid-signin-scope" content="name email"> <meta name="appleid-signin-redirect-uri" content="https://colourworker.com/apps/photofolia/applesignedin.html"> <meta name="appleid-signin-state" content="init"> <meta name="appleid-signin-nonce" content="NONCE"> <meta name="appleid-signin-use-popup" content="true"> </head> <body> <h1>Sign in with Apple</h1> <div id="appleid-signin" data-color="black" data-border="true" data-type="sign in"></div> <script type="text/javascript" src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js"></script> </head> </html> I have added https://colourworker.com/apps/photofolia/applesignedin.html to the list of Return URLs at https://developer.apple.com/account/resources/identifiers/serviceId/edit/ZSM7Q3SMVH. But when clicking on the Sign In With Apple button I get the following error: "invalid_request Invalid client id or web redirect url." Any ideas of what I'm doing wrong?
1
0
918
Nov ’23
Take RAW photo with zoom
We would like to develop an app which captures the centre area of a RAW photo, whilst displaying this in the viewfinder. In our CameraViewController we have videoDeviceInput.device.videoZoomFactor = 8 and the expected zoomed in image appears in the viewfinder. We are also able to set aperture and exposure settings correctly for the area we're interested in. When it comes to taking the photo we check for availableRawFormat and set photoSettings = AVCapturePhotoSettings(rawPixelFormatType: availableRawFormat ) Unfortunately this crashes with an error saying raw photos can't be taken with the zoomed device. A workaround we have now is to set the zoom factor to 1 and wait a bit until the photo is taken. We then do the demosaic manually for the centre of the photo. However wondering if there is a better solution?
0
1
793
Jun ’21
Access demosaiced image with no processing
In our application we would like to access the original camera data. We have a AVCapturePhoto photo for which isRawPhoto returns true. If we instantiate a CIFilter with options = [ CIRAWFilterOption.boostAmount: 0.0, CIRAWFilterOption.boostShadowAmount: 0.0, CIRAWFilterOption.colorNoiseReductionAmount: 0.0, CIRAWFilterOption.disableGamutMap: true, CIRAWFilterOption.enableChromaticNoiseTracking: false, CIRAWFilterOption.enableSharpening: false, CIRAWFilterOption.luminanceNoiseReductionAmount: 0.0, CIRAWFilterOption.moireAmount: 0.0, CIRAWFilterOption.noiseReductionAmount: 0.0, CIRAWFilterOption.noiseReductionDetailAmount: 0.0, CIRAWFilterOption.noiseReductionContrastAmount: 0.0, CIRAWFilterOption.noiseReductionSharpnessAmount: 0.0, ] the output image is a non-linearly modified version. photo.pixelBuffer appears to be in a format unlike any typical mosaic pattern (we have tried all four RGGB GRBG GBRG BGGR). Applying demosaic as per any of the patterns renders the repeated image in three vertical overlapping bands. Is there any way of only applying demosaic to the image, or is there any documentation on the pixelBuffer format?
4
0
1.2k
Nov ’20