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

iOS ownCloud signin framework #59

Open
crspybits opened this issue Jul 28, 2019 · 4 comments
Open

iOS ownCloud signin framework #59

crspybits opened this issue Jul 28, 2019 · 4 comments

Comments

@crspybits
Copy link

crspybits commented Jul 28, 2019

Hi,

I have a need in my own project to embed ownCloud sign in as an optional build element. In my case as a Cocoapod subspec. So, I want to create an ownCloud sign in framework as a Cocoapod. I'm part way into doing this -- it appears to require embedding ownCloudSDK, ownCloudUI and large parts of the ownCloud iOS app code into a framework (e.g., because I'd like to use the BookmarksViewController). Progressing on this, I've reached a stumbling block because of the use in the ownCloud iOS app of an internal framework-- ownCloudApp. I guess I could try to split that off and build it as it's own framework. I can't easily pull out the ownCloudApp framework because its very difficult for me to get the ownCloud iOS app to build. Just thought I'd check in here for ideas. Thoughts?

Thanks!
Chris.

@michaelstingl
Copy link
Contributor

Sounds complicated. With OAuth 2.0 enabled on the ownCloud server, you could use one of the OAuth 2.0 libraries. (AppAuth maybe…)

@crspybits
Copy link
Author

Nodding. I could do that. It seems typical, however, for systems to provide a sign-in library that has a similar look and feel to the native look and feel so users feel more comfortable. E.g. With Google Sign in (for Google Drive) or with Dropbox. It seemed like a good way to do that was to use the same code as for ownCloud. Beating on this more this morning, and being more selective about the files I'm including I finally have a clean build.

@crspybits
Copy link
Author

Well, I agree now. After beating on this some more, there are a large number of dependencies (e.g., for logging) that I just don't want to deal with. I'm trying AppAuth, and made a little progress, but am faltering at the discovery step. It's trying to use a path
https://<MY-OC-HOST>/.well-known/openid-configuration
and that's failing with "The data couldn’t be read because it isn’t in the correct format." Is there a different standard discovery URL for ownCloud servers?

@michaelstingl
Copy link
Contributor

ownCloud server speaks only OAuth 2.0, no OpenID connect. This will help you:
https://github.com/owncloud/oauth2/wiki/OAuth-code-Flow-Sequence-Diagram

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants