Skip to content

Commit

Permalink
0.6.1 (#301)
Browse files Browse the repository at this point in the history
* manager/mysql: MySQL DB not creating on start – JSON column types only supported from MySQL 5.7 and onwards - closes #299
* docs: improve gitbook front page
  • Loading branch information
arekkas authored Oct 26, 2016
1 parent 6347d0b commit c743e37
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 6 deletions.
4 changes: 3 additions & 1 deletion cmd/server/handler_client_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ func newClientManager(c *config.Config) client.Manager {
DB: con.GetDatabase(),
Hasher: ctx.Hasher,
}
m.CreateSchemas()
if err := m.CreateSchemas(); err != nil {
logrus.Fatalf("Could not create client schema: %s", err)
}
return m
case *config.RethinkDBConnection:
con.CreateTableIfNotExists("hydra_clients")
Expand Down
4 changes: 3 additions & 1 deletion cmd/server/handler_jwk_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ func injectJWKManager(c *config.Config) {
Key: c.GetSystemSecret(),
},
}
m.CreateSchemas()
if err := m.CreateSchemas(); err != nil {
logrus.Fatalf("Could not create jwk schema: %s", err)
}
ctx.KeyManager = m
break
case *config.RethinkDBConnection:
Expand Down
4 changes: 3 additions & 1 deletion cmd/server/handler_oauth2_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ func injectFositeStore(c *config.Config, clients client.Manager) {
DB: con.GetDatabase(),
Manager: clients,
}
m.CreateSchemas()
if err := m.CreateSchemas(); err != nil {
logrus.Fatalf("Could not create oauth2 schema: %s", err)
}
store = m
break
case *config.RethinkDBConnection:
Expand Down
4 changes: 3 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ func (c *Config) Context() *Context {
break
case *SQLConnection:
m := ladon.NewSQLManager(con.GetDatabase(), nil)
m.CreateSchemas()
if err := m.CreateSchemas(); err != nil {
logrus.Fatalf("Could not create policy schema: %s", err)
}
manager = m
break
case *RethinkDBConnection:
Expand Down
15 changes: 15 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<h1 align="center" style="margin-bottom: 8px">
<img alt="Hydra - cloud native access control" src="images/logo-essential.png">
</h1>

<h4 style="margin: 0 20% 1.275em" align="center">
Hydra is a runnable server implementation of the <a href="https://tools.ietf.org/html/rfc6749">OAuth 2.0 authorization framework</a>
and the <a href="http://openid.net/specs/openid-connect-core-1_0.html">OpenID Connect Core 1.0</a>.
</h4>

This is the user guide, you might be looking for the [GitHub Repository](http://github.com/ory-am/hydra), the
[HTTP REST API Documentation](http://docs.hdyra.apiary.io/) or
the [Language-Level API Documentation](https://godoc.org/github.com/ory-am/hydra) instead.

<hr>

# Introduction

Welcome to the Hydra documentation. This documentation will
Expand Down
Binary file added docs/images/logo-essential.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import:
- token/hmac
- token/jwt
- package: github.com/ory-am/ladon
version: ~0.3.0
version: ~0.3.3
- package: github.com/pborman/uuid
version: ~1.0.0
- package: github.com/pkg/errors
Expand Down

0 comments on commit c743e37

Please sign in to comment.